//
//  test1Controller.swift
//  GZWeibo007
//
//  Created by 何梓杰 on 15/12/24.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

class test1Controller: UIViewController, HbottomViewDelegate{
    lazy var commentViewC : HCommentViewController = HCommentViewController()
    lazy var forwardViewC : HForwardViewController = HForwardViewController()

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.blueColor()
        self.view.addSubview(hbV)
        hbV.delegate = self
    }
    
    //点击事件
    func commentClick() {
        let Nav = UINavigationController(rootViewController: commentViewC)
        self.presentViewController(Nav, animated: true, completion: nil)
    }
    func goodClick() {
        let Nav = UINavigationController(rootViewController: forwardViewC)
        self.presentViewController(Nav, animated: true, completion: nil)
    }
    func forwardClick() {
        let Nav = UINavigationController(rootViewController: forwardViewC)
        self.presentViewController(Nav, animated: true, completion: nil)
    }
    
    lazy var hbV : HbottomView = HbottomView(frame: CGRectMake(0, 50, UIScreen.mainScreen().bounds.width, 50))
    
}
